package com.ruoyi.shebei.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备巡检记录对象 xunjian
 * 
 * @author admin
 * @date 2024-08-02
 */
public class Xunjian extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 巡检id */
    private Long xunjianId;

    /** 设备表id,外键 */
    private Long shebeiId;

    /** 设备名称 */
    @Excel(name = "设备名称",sort = 1)
    private String sbName;

    /** 巡检时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "巡检时间", width = 30, dateFormat = "yyyy-MM-dd",sort = 2)
    private Date inspectionTime;

    /** 巡检员 */
    @Excel(name = "巡检员",sort = 3)
    private String inspector;

    /** 检查项目信息 */
    private List<CheckItem> checkItemList;

    public void setXunjianId(Long xunjianId) 
    {
        this.xunjianId = xunjianId;
    }

    public Long getXunjianId() 
    {
        return xunjianId;
    }
    public void setShebeiId(Long shebeiId) 
    {
        this.shebeiId = shebeiId;
    }

    public Long getShebeiId() 
    {
        return shebeiId;
    }
    public void setSbName(String sbName) 
    {
        this.sbName = sbName;
    }

    public String getSbName() 
    {
        return sbName;
    }
    public void setInspectionTime(Date inspectionTime) 
    {
        this.inspectionTime = inspectionTime;
    }

    public Date getInspectionTime() 
    {
        return inspectionTime;
    }
    public void setInspector(String inspector) 
    {
        this.inspector = inspector;
    }

    public String getInspector() 
    {
        return inspector;
    }

    public List<CheckItem> getCheckItemList()
    {
        return checkItemList;
    }

    public void setCheckItemList(List<CheckItem> checkItemList)
    {
        this.checkItemList = checkItemList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("xunjianId", getXunjianId())
            .append("shebeiId", getShebeiId())
            .append("sbName", getSbName())
            .append("inspectionTime", getInspectionTime())
            .append("inspector", getInspector())
            .append("checkItemList", getCheckItemList())
            .toString();
    }
}
